//
//  DSZMainHeaderView.m
//  7.13苏宁框架
//
//  Created by app05 on 15/7/16.
//  Copyright (c) 2015年 lovena. All rights reserved.
//

#import "DSZMainHeaderView.h"


@interface DSZMainHeaderView ()
@property (weak, nonatomic) IBOutlet UIImageView *iconImage;

@end
@implementation DSZMainHeaderView

-(void)awakeFromNib
{
    _iconImage.layer.cornerRadius=40;
    _iconImage.layer.masksToBounds=YES;
    _iconImage.layer.borderWidth=1;
    _iconImage.layer.borderColor=[UIColor whiteColor].CGColor;
    
}
- (IBAction)setting {
    if ([self.delegate1 respondsToSelector:@selector(settingBtnPush)]) {
        [self.delegate1 settingBtnPush];
    }
}

- (IBAction)login {
    if ([self.delegate1 respondsToSelector:@selector(loginInto)]) {
        [self.delegate1 loginInto];
    }
}

+(instancetype)header
{
    return [[NSBundle mainBundle]loadNibNamed:@"DSZMainHeaderView" owner:nil options:nil][0];
}

@end
